package com.guijq.selfcode.javase;

import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;

/**
 * @author yangjf
 * @time 2019-06-17 13:24
 */
public class Test6 {

    void foo(final  int[] args) {
        if (args.length > 1) {
            args[0] = 5;
        }
        args[0] = 2;
        for (int c :args) {
            System.out.println(String.valueOf(c));
        }
    }

    public static void main(String[] args) {
        int[] a = new int[2];
        for (int b : a) {
            System.out.println(b);
        }
        Test6 test6 = new Test6();
        test6.foo(a);
    }
}
